package com.china.great.common.service.impl;

import com.china.great.common.dao.LogMapper;
import com.china.great.common.entity.SysLog;
import com.china.great.common.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: Liu HongYang
 * @DateTime: 2020/5/12 9:58 下午
 * @Description: TODO
 */
@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;


    @Override
    public List<SysLog> getLogList() {
        return logMapper.selectList(null);
    }

    @Override
    public int insert(SysLog log) {
        return logMapper.insert(log);
    }
}
